<?php
// +----------------------------------------------------------------------
// | 麦沃德科技赋能开发者，助力会务会议发展
// +----------------------------------------------------------------------
// | Copyright (c) 2017～2024  All rights reserved.
// +----------------------------------------------------------------------
// | 沃德会务会议系统并不是自由软件，不加密，并不代表开源，未经许可不可自由转售和商用
// +----------------------------------------------------------------------
// | Author: MY WORLD Team <bd@maiwd.cn>   www.maiwd.cn
// +----------------------------------------------------------------------

namespace app\admin\model\wddj;

use think\Model;


class Config extends Model
{





    // 表名
    protected $name = 'wddj_config';

    // 自动写入时间戳字段
    protected $autoWriteTimestamp = false;

    // 定义时间戳字段名
    protected $createTime = false;
    protected $updateTime = false;
    protected $deleteTime = false;

    // 追加属性
    protected $append = [
        'system_mode_text',
    ];



    public function getRealNameAuthenticationStatusList()
    {
        return ['1' => __('RealNameAuthenticationStatus 1'), '2' => __('RealNameAuthenticationStatus 2')];
    }


    public function getRealNameAuthenticationStatusTextAttr($value, $data)
    {
        $value = $value ? $value : (isset($data['real_name_authentication_status']) ? $data['real_name_authentication_status'] : '');
        $list = $this->getRealNameAuthenticationStatusList();
        return isset($list[$value]) ? $list[$value] : '';
    }

    public function getWssSwitchList()
    {
        return ['normal' => '开启'];
    }

}
